namespace hjc {

	export type DisplayOptions = {
		name?: string,
		x?: number,
		y?: number,
		size?: number,
		width?: number,
		height?: number,
		scale?: number,
		scaleX?: number,
		scaleY?: number,
		rotation?: number,
		skewX?: number,
		skewY?: number,
		offset?: number,
		offsetX?: number,
		offsetY?: number,
		alpha?: number,
		visible?: boolean,
		touchEnabled?: boolean,
		touchChildren?: boolean,
		centered?: boolean,
	}

	export type AlignOptions = {
		all?: number,	//四周边距
		ver?: number,	//上下边距
		hor?: number,	//左右边距
		top?: number,	//上边距
		bottom?: number,//下边距
		left?: number,	//左边距
		right?: number,	//右边距
		hc?: number,	//水平居中偏移
		vc?: number,	//垂直居中偏移
		centered?: boolean,//居中
	}

	export type S9GridsOpitons = {
		x: number,
		y: number,
		w: number,
		h: number,
	}

	export type MoveParam = {
		fromX: number,
		fromY: number,
		movedX: number,
		movedY: number,
		valid: boolean,
	}

	export type DrawOptions = {
		lineColor?: number,		//线条颜色
		lineAlpha?: number,		//线条透明度
		thickness?: number,		//线条宽度
		lineDash?: boolean,		//使用虚线
		fillColor?: number,		//填充颜色
		fillAlpha?: number,		//填充透明度
		p?: egret.Point,		//点(1)
		x?: number,				//点(1)横坐标
		y?: number,				//点(1)纵坐标
		xy?: [number, number],	//点(1)坐标
		p2?: egret.Point,		//点2
		x2?: number,			//点2横坐标
		y2?: number,			//点2纵坐标
		xy2?: [number, number],	//点2坐标
		xys?: Array<number[]>,	//多点
		ps?: egret.Point[],		//多点
		angle?: number,			//角度
		length?: number,		//长度
		radius?: number,		//半径
		height?: number,		//高度
		width?: number,			//宽度
		size?: number,			//宽高
		gridWidth?: number,		//网格宽
		gridHeight?: number,	//网格高
		gridSize?: number,		//网格宽高
		colNum?: number,		//列数
		rowNum?: number,		//行数
		centered?: boolean,		//锚点居中
		angleStart?: number,	//开始角度
		angleEnd?: number,		//结束角度
		clockwise?: boolean,	//顺时针方向
		num?: number,			//(顶点/边/角)数量
	}
}

